Skip to content

Share the same switch status object among multiple switch sources.#347

Merged
freezy merged 3 commits into
masterfrom
fix/multi-switch-status
Nov 30, 2021
Merged

Share the same switch status object among multiple switch sources.#347
freezy merged 3 commits into
masterfrom
fix/multi-switch-status

Conversation

@freezy
Copy link
Copy Markdown
Owner

@freezy freezy commented Nov 25, 2021

Since we can have multiple switch mappings pointing to the same switch but a dictionary by switch ID storing the statuses, each switch for the same ID would overwrite the status of the previous one. This PR fixes that by re-using the same status object for all switches of the same ID.

@freezy freezy self-assigned this Nov 25, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 25, 2021

Codecov Report

Merging #347 (96d8d93) into master (22af0d3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #347   +/-   ##
=======================================
  Coverage   83.91%   83.91%           
=======================================
  Files         125      125           
  Lines        6741     6741           
=======================================
  Hits         5657     5657           
  Misses       1084     1084           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22af0d3...96d8d93. Read the comment docs.

@freezy freezy force-pushed the fix/multi-switch-status branch from 4432899 to 1c002c0 Compare November 30, 2021 11:30
@freezy freezy merged commit d7525e5 into master Nov 30, 2021
@freezy freezy deleted the fix/multi-switch-status branch November 30, 2021 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant